import React from 'react';
class MyInput extends React.Component {
  // $attrs v-bind='$attrs'
  render() {
    // let { type = 'text', value, onChange, onPressEnter } = this.props;
    let { onPressEnter, ...qqq } = this.props;
    // console.log(qqq)
    return <div className=''>
      {/* 自己的封装的<input type={type} value={value} onChange={onChange} /> */}
      自己的封装的<input {...qqq} onKeyDown={e => {
        if (e.keyCode == 13) {
          onPressEnter()
        }
      }} />
    </div>;
  }
}
export default MyInput